//
//  InvestInfoCell.m
//  xindailianmeng
//
//  Created by xu on 17/3/18.
//  Copyright © 2017年 xindailianmeng.cn. All rights reserved.
//

#import "InvestInfoCell.h"

@interface InvestInfoCell ()

@property (nonatomic, strong)UILabel            *numLabel;
@property (nonatomic, strong)UILabel            *dateLabel;
@property (nonatomic, strong)UILabel            *monkeyLabel;

@end

@implementation InvestInfoCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self buildLayout];
    }
    return self;
}

- (void)buildLayout{
    self.numLabel = [[UILabel alloc]initWithFrame:CGRectMake(15, 15, kScreenW-15, 15)];
    self.numLabel.font = [UIFont systemFontOfSize:15];
    self.numLabel.textColor = [LCCommon getColor:@"333333"];
    self.numLabel.text = @"155*****1234";
    [self.contentView addSubview:self.numLabel];
    
    
    self.dateLabel = [[UILabel alloc]initWithFrame:CGRectMake(15, 15 + 15 + 10, kScreenW-15, 12)];
    self.dateLabel.font = [UIFont systemFontOfSize:12];
    self.dateLabel.textColor = [LCCommon getColor:@"666666"];
    self.dateLabel.text = @"2016-12-31 20:12:12";
    [self.contentView addSubview:self.dateLabel];
    
    
    self.monkeyLabel = [[UILabel alloc]initWithFrame:CGRectMake(0, 25, kScreenW-15, 17)];
    self.monkeyLabel.font = [UIFont systemFontOfSize:17];
    self.monkeyLabel.textColor = [LCCommon getColor:@"333333"];
    self.monkeyLabel.text = @"1000.000";
    self.monkeyLabel.textAlignment = NSTextAlignmentRight;
    [self.contentView addSubview:self.monkeyLabel];
    
    
    UIView *line = [[UIView alloc]initWithFrame:CGRectMake(15, 60 - 1/[UIScreen mainScreen].scale, kScreenW - 15, 1/[UIScreen mainScreen].scale)];
    line.backgroundColor = [LCCommon getColor:@"cccccc"];
    [self.contentView addSubview:line];
}


- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
